<?
class Acceptance_model extends CI_Model {
	
	/**
	 *	用于获取异常限/接受限
	 *
	 */


	public function __construct()
	{
		$this->load->database();
	}
	
	/*	获取名为qa_acceptance表的所有项 */
	public function get_acceptance() {
		$query = $this->db->get('qa_acceptance');
		return $query->result_array();
	}

	public function get_national_protected_nonesightseeing_acceptance() {
		$query = $this->db->query('SELECT acceptance FROM qa_acceptance WHERE location_id LIKE "000" AND type_of_cultivation LIKE \'2\' AND is_sightseeing LIKE \'0\'');
		return $query->row_array();
	}

}
?>